<?php get_instance()->view('common/header');?>
<style>
	.saixuan{background:#fff;}
	.discount{display:block;float:left;}
	.discount img{width:100%;margin-top:1px;}
	.conentbox{display:block;}
	.conentbox .pr{float:left;}
	.conentbox .model{padding-left:5.75em;}
	.conentbox:after{clear:both;content:'';display:block;}
	.juli{top:1.25em;display:block;text-align:right;}
	.juli .shu{height:0.25em;}
	.banner{margin-bottom:0.5em;}
</style>
<body>
<div class="saixuan saixuanfix threesai">
    <a href=""  class="actived">商家</a>
<!--    <a href="--><?php //echo getUrl('user/collection?type=2')?><!--" >商品</a>-->
    <a href=""></a>
    <a href="<?php echo getUrl('user/collection?type=2')?>">便民服务</a>
    <div class="after"></div>
</div>
<div class="waper">
    <?php if (!empty($list)): foreach ($list as $k => $v):?>
        <a href="<?php echo getUrl('product/merchant?merchant_id='.$v['id'])?>">
            <div class="conentbox hengleft">
                <div class="imgbox mr10 pr"><img src="<?php echo $v['headurl']['og']?>" alt=""></div>
                <div class="model">
                    <div class="hengleft vCenter"><p class="mr5 lh10 f09 fb"><?php echo $v['shop_name']?></p></div>
                    <div class="hengleft f08 mt5 mb5 vCenter">
                        <div class="xing hengleft vCenter">
                            <?php for ($i = 0; $i < $v['score']; $i++):?>
                                <img src="<?php echo $this->staticUrl?>img/png/pic11.png" alt="">
                            <?php endfor; $score = 5 - $v['score']; for ($k = 0; $k < $score; $k++):?>
                                <img src="<?php echo $this->staticUrl?>img/png/pic12.png" alt="">
                            <?php endfor;?>
<!--                            <span class="hongzi f09">--><?php //echo $v['score']?><!--</span>-->
                        </div>
                        <span class="shu"></span>
                        <span class="f08">月售<?php echo $v['month_total']?>单</span>
                    </div>
                    <?php  if(!empty($v['business_desc'])): ?>
                        <span class="f06" style="background-color: #0c91e5;color: white;padding: 0.1em 0.5em;"><?php echo $v['business_desc'] ?></span>
                    <?php  endif; ?>
                    <?php if (!empty($v['note'])): foreach ($v['note'] as $kn => $vn):?>
                        <div class="hengleft vCenter f085">
                            <span class="discount"><img src="<?php echo $vn['icon']?>" alt=""></span>
                            <p class="f08 cor8 textEll"><?php echo $vn['text']?></p>
                        </div>
                    <?php endforeach; endif;?>
                </div>
                <p class="cor9 juli vCenter"><?php if ($v['distance'] >= 1000){ $d = $v['distance']/1000; echo $d.'km';}else{ echo $v['distance'].'m';}?><span class="dk shu"></span>
                    预计<?php echo $v['expect_arrive_time']?>分钟</p>
            </div>
        </a>
    <?php endforeach; else:?>
        <div class="statebox chuizhi jdjz" style="flex: 1;height: 100%;">
            <img class="stateimgda mb5" src="<?php echo $this->staticUrl?>img/default/1.png" alt="">
            <span class="f09 cor9 tc mb20">你还没有收藏店铺哦～去逛逛吧！</span>
            <a href="<?php echo getUrl('home/index')?>" class="daborbtnPub mb10 f12">去逛逛</a>
        </div>
    <?php endif;?>
</div>
<div class="mask"></div>
</body>
<script src="<?php echo $this->staticUrl?>js/base.js"></script>
</html>